<?php
include "page.class.php";
$page = new Page(1000);

/**
//设置分页类按钮样式
$page->set('head', '篇内容')
           ->set('first', '|<')
           ->set('prev', '<<')
           ->set('next', '>>')
           ->set('last', '>|');
*/

$sql = "SELECT * FROM article {$page->limit}";
echo "<p>SQL = {$sql}</p>";
echo $page->fpage();

//设置分页类按钮及信息的顺序及有无
//echo $page->fpage(3, 4, 5, 6, 0);